package com.zb.frame.modules.monitor.service;

import com.zb.frame.modules.monitor.entity.Log;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zb.frame.modules.monitor.enums.LogModule;
import com.zb.frame.modules.monitor.enums.LogType;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author bangZZ
 * @since 2020-06-09
 */
public interface LogService extends IService<Log> {

    boolean addLog(LogModule module, LogType type, String oldValue, String newValue, String relId, Long operator, String msg);

    boolean addLogError(LogModule module, LogType type, String oldValue, String newValue, String relId, Long operator, String errorReason, String msg);

    boolean addLog(List<Log> list);

    List<Log> getLogList(Integer page, Integer limit, Map<String, Object> params);

    Long getLogListCount(Map<String, Object> params);


}
